/*
 * @Author: 谢陈洁
 * @Date: 2025-06-27 09:07:03
 * @LastEditors: 谢陈洁
 * @LastEditTime: 2025-08-01 15:33:20
 * @Description: file content
 */
export const columns = [
    {
      prop: 'id',
      label: 'ID',
      width: 80
    },
    {
      prop: 'name',
      label: '名称',
      width: 200
    },
    {
      prop: 'code',
      label: 'code'
    },
    {
      label: '操作',
      slot: 'action',
      fixed: 'right',
      width: 200
    }
  ]

export const editFormConfig = [
  {
    type: 'input',
    prop: 'name',
    label: '角色名称',
    span: 24,
    rules: [{ required: true, message: '请输入角色名称', trigger: 'blur' }]
  },
  {
    type: 'input',
    prop: 'code',
    label: '角色编码',
    span: 24,
    rules: [{ required: true, message: '请输入角色编码', trigger: 'blur' }]
  },
  {
    type: 'tree',
    prop: 'permissions',
    label: '权限',
    span: 24,
    attrs: {
      data: [],
      'check-strictly': true,
    }
  }
]
